package com.hongli.blog.service.impl;

import com.hongli.blog.entity.BasicsDao;
import com.hongli.blog.service.Basicsservice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @Author ZERO
 * @Date 2021/11/10 15:56
 **/
@Service
public class Basicsserviceimpl implements Basicsservice{
    @Autowired
    private Basicsservice basicsservice;

    @Override
    public List<BasicsDao> SelectAllBasics(){
        return basicsservice.SelectAllBasics();
    }

    @Override
    public BasicsDao UpdataBasics(int basicsid){
        return basicsservice.UpdataBasics(basicsid);
    }

    @Override
    @Transactional(rollbackFor = Exception.class)
    public void InsertBasics(BasicsDao basicsDao){
        basicsservice.InsertBasics(basicsDao);
    }

    @Override
    @Transactional(rollbackFor = Exception.class)
    public void UpdataBasicsData(BasicsDao basicsDao){
        basicsservice.UpdataBasicsData(basicsDao);
    }

    @Override
    @Transactional(rollbackFor = Exception.class)
    public void UpdataRemek(int basicsid){
        basicsservice.UpdataRemek(basicsid);
    }

    @Override
    @Transactional(rollbackFor = Exception.class)
    public void UpdataAllRemek(){
        basicsservice.UpdataAllRemek();
    }

    @Override
    @Transactional(rollbackFor = Exception.class)
    public void deleteBasics(int basicsid){
        basicsservice.deleteBasics(basicsid);
    }
}
